using System;
using OneDayModel.Interfaces;

namespace OneDayModel.PresentationLogic
{
    public interface IUserLoginUI
    {
        event EventHandler<UserLoginArgs> onUserLogin;

        void SetAlias(string alias);
        void SetPassword(string password);
        void ShowUserStartupPage(IUser user);
        void LoginUser();
        void ShowStillWaitingForConfirmation(IUser user);
        void ShowAccountBannedPage(IUser user);
        void ShowUserNotFound();
        void ShowInvalidPassword();
        void AliasIsEmpty();
    }

    public class UserLoginArgs : EventArgs
    {
        private readonly string alias;
        private readonly string password;


        public UserLoginArgs(string alias, string password)
        {
            this.alias = alias;
            this.password = password;
        }

        public string Alias
        {
            get { return alias; }
        }

        public string Password
        {
            get { return password; }
        }
    }
}